#!/bin/bash
for file in $(ls -al /tmp/*.log|awk '{print $9}')
do
        for s in $(du -sh -m ${file} | awk '{print $1}')
        do
                if [ ${s} -gt 4 ]; then
                echo "${file} is too big and delete !" >>/tmp/crontab.log
		rm ${file}  -rf
		sync;
                fi
        done
done
